#ifndef DICT_H
#define DICT_H
#include "bool.h"

typedef struct sDict * Dict;
typedef char * Word;
typedef char * Def;

Dict
dict_empty(void);

void
dict_add(Dict d, Word w, Def f);
                             
Bool
dict_exists(Dict d, Word w);

Def
dict_search(Dict d, Word w);

void
dict_del(Dict d, Word w);

void
print_dict(Dict d);

int
dict_length(Dict d);

Dict
dict_destroy(Dict d);

Dict
dict_fromFile(char * nomfile);

void
dict_toFile(char * nomfile, Dict d);
#endif

